package com.whmnx.my.ui.fragment;

import android.app.Application;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.ViewGroup;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.whmnx.base.bean.AddressBean;
import com.whmnx.base.bean.ProductBean;
import com.whmnx.base.view.CommonDialog;
import com.whmnx.my.R;
import com.whmnx.my.databinding.FragmentAddLoctionBinding;
import com.whmnx.my.ui.viewmodel.AddLocModel;

import me.goldze.mvvmhabit.BR;
import me.goldze.mvvmhabit.base.BaseFragment;
import me.goldze.mvvmhabit.base.BaseViewModel;
import me.goldze.mvvmhabit.binding.command.BindingAction;
import me.goldze.mvvmhabit.binding.command.BindingCommand;

/**
 * author : huang
 * date   : 2020/9/15 0015 18:56
 * version: 1.0
 * @author Administrator
 */
public class MyAddLoctionFragment extends BaseFragment<FragmentAddLoctionBinding, AddLocModel> {

    public AddressBean addressBean;

    @Override
    public int initContentView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        return R.layout.fragment_add_loction;
    }

    @Override
    public int initVariableId() {
        return BR.viewModel;
    }

    @Override
    public void initData() {
        super.initData();
        Bundle mBundle = getArguments();
        if (mBundle != null) {
             addressBean = (AddressBean) mBundle.getSerializable("addressBean");
        }
        viewModel.initToolbar(this,binding);
    }
}
